<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        .box{
            overflow: hidden;
            width: 0;
            height: 30px;
            font-size: 20px;
            white-space: nowrap;
            background-color: pink;
            animation: stepss 2s steps(10) infinite;
        }
        @keyframes stepss {
            0%{
                    width: 0;
            }
            100%{
               width: 200px;
            }
        }
    </style>
</head>
<body>
    <div class="box">
        你是个傻逼吗哈哈哈哈
    </div>
</body>
</html>